package com.errol.batchprocessor.payroll.advisorimpl.payload;

import com.renjia.entity.BusPayrollRecordDetail;
import com.renjia.service.module.payrollmanage.po.PayrollDetailExcelPO;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/03/16
 * @since v
 **/
@Getter
public class PayrollUploadSinglePayload {

    private final PayrollDetailExcelPO payrollDetailPo;
    private final List<String> errMsgList;

    private final BusPayrollRecordDetail busPayrollRecordDetail;
    private boolean modifyMode;

    public PayrollUploadSinglePayload(PayrollDetailExcelPO payrollDetailPo, BusPayrollRecordDetail busPayrollRecordDetail) {
        this.payrollDetailPo = payrollDetailPo;
        this.busPayrollRecordDetail = busPayrollRecordDetail;
        this.errMsgList = new ArrayList<>();
        this.modifyMode = false;
    }

    public void setModifyMode(boolean modifyMode) {
        this.modifyMode = modifyMode;
    }
}
